<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <meta name="keywords" content="　">
  <meta name="description" content="　">
  <meta http-equiv="content-script-type" content="text/javascript">
  <meta http-equiv="content-style-type" content="text/css">
  <title>たび２．０：<%= controller.action_name %></title>
  <link href="/stylesheets/themes/default.css" rel="stylesheet" type="text/css"/>
  <link href="/stylesheets/themes/mac_os_x.css" rel="stylesheet" type="text/css"/>
  <%= stylesheet_link_tag 'common' %>
  <%= stylesheet_link_tag "#{controller.action_name}" %>
  <%= javascript_include_tag "common" %>
  <!--- <%= javascript_include_tag "http://simile.mit.edu/timeline/api/timeline-api.js"%> -->
  <%= javascript_include_tag "api/timeline-api.js" %>
  <%= javascript_include_tag "timeline" %>
  <%= javascript_include_tag "prototype" %>
  <%= javascript_include_tag "window" %>
  <style type="text/css">
  div#my-timeline {
	border: 2px outset blue;
    margin-top: 2px;
	padding: 5px;
  }
  </style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoad();" onresize="onResize();">

<div id="Body">
  
  <!-- left-->
  <div id="left">
	<div id="left_header">
	</div>
	<div id="left_mainContents">
	  <%= link_to(image_tag("/images/logo.gif", {:alt => "ロゴ", :align => "center", :valign => "middle"}), :controller => 'entry', :action => '') %>
	  <%=
		if (controller.action_name == "myalbum")
	      link_to(image_tag("/images/logout_off_btn.gif", {:alt => "myアルバムをとじる", :align => "right"}), :controller => 'account', :action => "logout")
		else
		  if logged_in?
	        link_to(image_tag("/images/login_off_btn.gif", {:alt => "myアルバムをひらく", :align => "right"}), :controller => 'entry', :action => 'myalbum')
	      else
	        link_to(image_tag("/images/login_off_btn.gif", {:alt => "myアルバムをひらく", :align => "right"}), :controller => 'account', :action => 'login')
	      end
	    end
	  %>
	</div>
	<div id="left_footer">
	  <%= 
	  unless (controller.action_name == "help")
	    link_to(image_tag("/images/use_off_btn.gif", {:alt => "使い方", :align => "right"}), :controller => 'entry', :action => 'help')
	  end
	  %>
	</div>
  </div>
  <!-- // left -->
  
  <!-- center -->
  <div id="center">
	<div id="center_header">
	  <div style="float:left;align:left;margin-top:60px;">
		<font color="green">
		<%= "ようこそ！#{current_user.login}さん　" if logged_in? %>
		</font>
	  </div>
	  <%= link_to(image_tag("/images/search_off_btn.gif", {:alt => "たび検索", :align => "right"}), :controller => 'entry', :action => 'search') %>
	  <%=
		if logged_in?
		  link_to(image_tag("/images/new_off_btn.gif", {:alt => "新規登録", :align => "right"}), :controller => 'entry', :action => 'upload')
	    else
		  link_to(image_tag("/images/new_off_btn.gif", {:alt => "新規登録", :align => "right"}), :controller => 'account', :action => 'signup')
	    end
	  %>
	</div>
	<div id="center_mainContents">
	  
	  <%= yield  %>
	  
		<div align="center">
	  <%=
		unless @entry_pages.nil?
	      link_to(image_tag("/images/bavkv_off_btn.gif", {:alt => "previous"}), {:page => @entry_pages.current.previous}) if @entry_pages.current.previous
	    end
	  %>
	  <%=
	      pagination_links @entry_pages unless @entry_pages.nil?
	  %>
	  <%=
		unless @entry_pages.nil?
	      link_to(image_tag("/images/nextv_off_btn.gif", {:alt => "next"}), {:page => @entry_pages.current.next}) if @entry_pages.current.next
	    end
	  %>
	  </div>
	  
	</div>
	
	<div id="center_footer">
		<div align="right">
			<a href="#" onclick="sec_policy()">個人情報の取り扱い</a>&nbsp; | &nbsp;
			<%= link_to("concept", :controller => 'entry', :action => 'concept') %>&nbsp; | &nbsp;
			<%= link_to("about us", :controller => 'account', :action => 'about') %>
		</div>
		<%= image_tag ("/images/presented_by_rbc.gif", :align => "center", :valign => "middle") %>
	</div>
  </div>
  <!-- // center -->
  
  <!-- right -->
  <div id="right">
	<div id="right_header">
	</div>
	<div id="right_mainContents">
	</div>
	<div id="right_footer">
	</div>
  </div>
  <!-- // right -->
  
</div>
<script type="text/javascript" charset="utf-8">
<!--
    <%= "alert ('#{flash[:notice]}');" if flash[:notice] %>
-->
</script>
</body>
</html>
